package indi.kider.server.bill.mapper;

import indi.kider.common.model.bill.MeterAddress;
import indi.kider.common.model.bill.Reading;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ReadingMapper extends Mapper<Reading> {
    void batchInsert(List<Reading> readings);

    Long getWaterMeterMatchedAttribution(Reading readings);

    Long getPowerMeterMatchedAttribution(Reading readings);

    List<MeterAddress> queryMeterAddressByPowerMeterCode(@Param("meterCode") String meterCode);
    List<MeterAddress> queryMeterAddressByPowerMeterCodes(@Param("meterCodes")  List<String> meterCodes);
    List<MeterAddress> queryMeterAddressByWaterMeterCode(@Param("meterCode") String meterCode);
    List<MeterAddress> queryMeterAddressByWaterMeterCodes(@Param("meterCodes") List<String> meterCodes);
    List<MeterAddress> queryMeterAddressByCommunity(@Param("communityCode") String communityCode);
}